﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tema
{
    class CarSedan : AbstractCar
    {
        private int _seetsNo;
        private string _seetsCover;
        private int _pistonNo;

        ///<summary>
        ///Sets the special characteristics for a Mini car
        ///<para>param name="characteristic1": (int) Number of seats</para>
        ///<para>param name="characteristic2": (string) The Seats Cover type</para>
        ///<para>param name="characteristic3": (int) Number of Engine Pistons</para>
        ///</summary>
        public override void setCharacteristics(string characteristic1, string characteristic2, string characteristic3)
        {
            try
            {
                _seetsNo = int.Parse(characteristic1);
                _seetsCover = characteristic2;
                _pistonNo = int.Parse(characteristic3);
            }
            catch (Exception e)
            {
                Console.WriteLine("Invalid " + GetType().Name + " special characteristic initialiation: " + e.Message);
            }
        }

        public override string getCharacteristic1()
        {
            return _seetsNo + "";
        }

        public override string getCharacteristic2()
        {
            return _seetsCover;
        }

        public override string getCharacteristic3()
        {
            return _pistonNo + "";
        }

        public override void printCharacteristics()
        {
            Console.WriteLine("\tCharacteristics:\n\t\tSeets number: " + getCharacteristic1() + " Seets Cover: " + getCharacteristic2() + " Pistons number: " + getCharacteristic3());
        }
    }
}
